#include "ota_http_curl.h"

//填写 linux (11.130) 访问windows (11.1) 的地址
#define HTTP_SERVER_URL "http://192.168.11.1:8000/fileinfo.json"
#define HTTP_SERVER_DOWNLOAD_URL "http://192.168.11.1:8000/download/gateway.bin"


int main(int argc, char *argv[])
{
    
    response_body_t *response_body= ota_http_curl_get(HTTP_SERVER_URL); 

    printf("response_body->response_len:%d\n", response_body->response_len);
    printf("response_body->response_str:%s\n", response_body->response_str);



    ota_http_curl_download(HTTP_SERVER_DOWNLOAD_URL, "/home/atguigu/gateway_0305/gateway.update");
    
    return 0;
}